const config={
    "GOODS_ADD":"goods/add",//商品添加
    /**
     * {
        "goodsName":"鸭子",
        "goodsImg":"img/img10.jpg",
        "goodsPrice":"21.00",
        "discountPrice":"21.00",
        "goodsDetails":"鸭子--即时优惠21元",
        "type":"零食",
        "flag":"良品铺子",
        "memo":""
      }
     */

    "GOODS_GETBYID":"goods/getById",//通过商品id查询商品
    "GOODS_GETALL":"goods/getAll",//查询所有商品(参数value="")
    "USER_LOGIN":"user/login",//登录
    "USER_EXIT":"user/exit",//退出
    "USER_LOGINCHECK":"user/loginCheck",//登录检查(用来验证是否已经登录，如果登录后台会在session中缓存用户信息)
    "USER_ADD":"user/add",//添加用户
    /**
     * {
        "xh":"鸭子",
        "password":"10086",
        "name":"徐聪",
        "age":21,
        "sex":"男",
        "address":"湖北蓟州"
     }
     */
    "USER_UPDATEPSWD":"user/upadtePswd",//修改密码
    "FAVOR_GETBYUSERID":"favor/getByXh",//查询收藏
    "FAVOR_ADD":"favor/add",//收藏夹添加
    /**
     * {
        "userId":"1",
        "userXh":"10086",
        "goodsId":"1",
        "favorPrice":21.00
       }
     */
    "FAVOR_DELETEBYID":"favor/deleteById",//删除收藏夹?goodsId=1
    "CAR_ADD":"car/add",//购物车添加
    /**
     * {
        "userId":"1",
        "userXh":"10086",
        "goodsId":"2",
        "carNum":2,
        "carPrice":21.00
     }
     *
     */
    "CAR_GETBYXH":"car/getByXh",//购物车查询通过用户账号?userXh=10086
    "CAR_DELETEBYID":"car/deleteById",//删除购物车的商品?goodsId=1
    "ORDER_GETALL":"order/getAll",//所有订单查询?userXh=10086
    "ORDER_ADDORDER":"order/addOrder"//添加订单
    /**
     * {
       "order":{
           "orderStatus":1,
           "flag":"",
           "userXh":"10086",
           "userId":1,
           "orderAddress":"江西南昌",
           "orderNumber":2,
           "orderMoney":42.00
       },
       "details":[
           {
               "orderId":0,
               "userId":1,
               "num":1,
               "price":21.00,
               "goodsId":1
           },
           {
               "orderId":0,
               "userId":1,
               "num":1,
               "price":21.00,
               "goodsId":2
           }
       ]
      }
     *
     */
}
